68
|
I have a hierarchy and I need to filter only root items that match, with thier childs

excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot;
excombobox1.FilterInclude = exontrol.EXCOMBOBOXLib.FilterIncludeEnum.exRootsWithChilds;
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter;
var_Column.Filter = "R1";
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("R1");
var_Items.InsertItem(h,null,"C1");
var_Items.InsertItem(h,null,"C2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("R2");
var_Items.InsertItem(h,null,"C1");
var_Items.InsertItem(h,null,"C2");
excombobox1.ApplyFilter();
|
66
|
I have a hierarchy and I need to filter only parent items that match, including thier childs

excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot;
excombobox1.FilterInclude = exontrol.EXCOMBOBOXLib.FilterIncludeEnum.exItemsWithChilds;
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter;
var_Column.Filter = "R1";
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("R1");
var_Items.InsertItem(h,null,"C1");
var_Items.InsertItem(h,null,"C2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("R2");
var_Items.InsertItem(h,null,"C1");
var_Items.InsertItem(h,null,"C2");
excombobox1.ApplyFilter();
|
558
|
I do not like to specify the item padding for every column I add. The question is how can I do it automatically

excombobox1.BeginUpdate();
excombobox1.AttachTemplate("handle AddColumn(Column){Column{Def(48)=8;Def(49)=8;AllowDragging=False;AllowSizing = True}}");
excombobox1.HeaderAppearance = exontrol.EXCOMBOBOXLib.AppearanceEnum.Etched;
excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exAllLines;
excombobox1.GridLineStyle = exontrol.EXCOMBOBOXLib.GridLinesStyleEnum.exGridLinesVSolid;
exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns;
var_Columns.Add("Item");
exontrol.EXCOMBOBOXLib.Column var_Column = (var_Columns.Add("Pos") as exontrol.EXCOMBOBOXLib.Column);
var_Column.Position = 0;
var_Column.Width = 32;
var_Column.AllowSizing = false;
var_Column.FormatColumn = "1 index ``";
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item A");
var_Items.AddItem("Item B");
var_Items.AddItem("Item C");
excombobox1.EndUpdate();
|
472
|
I cannot seem to get autosearch=1 (contains) in the column object to search properly. It still only finds items that start with the typed character. I want to it look to see if the typed character(s) are contained in the item. I Can't seem to get this to work

excombobox1.BeginUpdate();
excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList;
excombobox1.HeaderVisible = false;
excombobox1.AutoSearch = true;
excombobox1.AutoDropDown = true;
excombobox1.IntegralHeight = true;
(excombobox1.Columns.Add("Default") as exontrol.EXCOMBOBOXLib.Column).AutoSearch = exontrol.EXCOMBOBOXLib.AutoSearchEnum.exContains;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("This is a bit of text");
var_Items.AddItem("This is a another text");
excombobox1.EndUpdate();
|
94
|
I can't scroll to the end of the data. What can I do

excombobox1.ScrollBySingleLine = true;
excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exRowLines;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_ItemHeight(var_Items.AddItem(0),13);
excombobox1.PutItems(excombobox1.GetItems(0),null);
exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items;
var_Items1.set_ItemHeight(var_Items1.AddItem(1),26);
excombobox1.PutItems(excombobox1.GetItems(0),null);
exontrol.EXCOMBOBOXLib.Items var_Items2 = excombobox1.Items;
var_Items2.set_ItemHeight(var_Items2.AddItem(2),36);
excombobox1.PutItems(excombobox1.GetItems(0),null);
exontrol.EXCOMBOBOXLib.Items var_Items3 = excombobox1.Items;
var_Items3.set_ItemHeight(var_Items3.AddItem(3),48);
excombobox1.PutItems(excombobox1.GetItems(0),null);
|
469
|
I am using the ScrollWidth/ScrollHeight property on 0 to hide the control's scroll bars, the question is that the drop down button is disappearing. What can be done so I can still show the drop down button

excombobox1.BeginUpdate();
excombobox1.LabelHeight = 40;
excombobox1.ScrollWidth = 0;
excombobox1.ScrollHeight = 0;
excombobox1.DropDownButtonWidth = 40;
excombobox1.EndUpdate();
|
514
|
I am using filter prompt feature, and also column's filter, just wondering if possible to compact displaying the filter bar so it won't show on multiple lines

excombobox1.BeginUpdate();
(excombobox1.Columns.Add("Item") as exontrol.EXCOMBOBOXLib.Column).DisplayFilterButton = true;
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Pos") as exontrol.EXCOMBOBOXLib.Column);
var_Column.AllowSizing = false;
var_Column.AllowSort = false;
var_Column.Width = 32;
var_Column.FormatColumn = "1 apos ``";
var_Column.Position = 0;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item A");
var_Items.AddItem("Item B");
var_Items.AddItem("Item C");
excombobox1.FilterBarFont = (excombobox1.Font as stdole.IFontDisp);
excombobox1.FilterBarCaption = "`<r><i><fgcolor=808080><upline><solidline><sha ;;0>` + value";
excombobox1.FilterBarPromptPattern = "B";
excombobox1.FilterBarPromptVisible = exontrol.EXCOMBOBOXLib.FilterBarVisibleEnum.exFilterBarCompact | exontrol.EXCOMBOBOXLib.FilterBarVisibleEnum.exFilterBarSingleLine | exontrol.EXCOMBOBOXLib.FilterBarVisibleEnum.exFilterBarVisible | exontrol.EXCOMBOBOXLib.FilterBarVisibleEnum.exFilterBarPromptVisible;
exontrol.EXCOMBOBOXLib.Column var_Column1 = excombobox1.Columns[0];
var_Column1.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter;
var_Column1.Filter = "Item A|Item B";
excombobox1.ApplyFilter();
excombobox1.EndUpdate();
|
550
|
I am calling Value to change the selected value, but the selection is not visible, unless I scroll to it

excombobox1.BeginUpdate();
excombobox1.ColumnAutoResize = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExComboBox\\Sample\\Access\\sample.accdb",exontrol.ADODB.CursorTypeEnum.adOpenKeyset,exontrol.ADODB.LockTypeEnum.adLockReadOnly,0);
excombobox1.DataSource = (rs as ADODB.Recordset);
excombobox1.Value = 10311;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.EnsureVisibleItem(var_Items.FocusItem);
excombobox1.EndUpdate();
|
146
|
I've seen that you can change the visual appearance for the scroll bar. How can I do that

excombobox1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
excombobox1.VisualAppearance.Add(2,"c:\\exontrol\\images\\pushed.ebn");
excombobox1.VisualAppearance.Add(3,"c:\\exontrol\\images\\hot.ebn");
excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exSBtn,0x1000000);
excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exSBtnP,0x2000000);
excombobox1.set_Background32(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exSBtnH,0x3000000);
excombobox1.set_Background(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exHSBack,Color.FromArgb(240,240,240));
excombobox1.set_Background(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exVSBack,Color.FromArgb(240,240,240));
excombobox1.set_Background(exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exScrollHoverAll | exontrol.EXCOMBOBOXLib.BackgroundPartEnum.exDateScrollThumb,Color.FromArgb(240,240,240));
(excombobox1.Columns.Add("S") as exontrol.EXCOMBOBOXLib.Column).Width = 32;
(excombobox1.Columns.Add("Level 1") as exontrol.EXCOMBOBOXLib.Column).LevelKey = 1;
(excombobox1.Columns.Add("Level 2") as exontrol.EXCOMBOBOXLib.Column).LevelKey = 1;
(excombobox1.Columns.Add("Level 3") as exontrol.EXCOMBOBOXLib.Column).LevelKey = 1;
(excombobox1.Columns.Add("E1") as exontrol.EXCOMBOBOXLib.Column).Width = 32;
(excombobox1.Columns.Add("E2") as exontrol.EXCOMBOBOXLib.Column).Width = 32;
(excombobox1.Columns.Add("E3") as exontrol.EXCOMBOBOXLib.Column).Width = 32;
(excombobox1.Columns.Add("E4") as exontrol.EXCOMBOBOXLib.Column).Width = 32;
excombobox1.ColumnAutoResize = false;
|
119
|
I've seen that the width of the tooltip is variable. Can I make it larger

excombobox1.ToolTipWidth = 328;
(excombobox1.Columns.Add("tootip") as exontrol.EXCOMBOBOXLib.Column).ToolTip = "this is a tooltip that should be very very very very very very very long";
|
2
|
I've added a single column, but it is displayed only on a part of the control. Is there something I can do so the column will be fully displayed on the control

excombobox1.Columns.Add("ColumnName");
excombobox1.Items.AddItem("Item 1");
excombobox1.Items.AddItem("Item 2");
|
473
|
How would you clear the displayed selection for style DropDownList. So if a user selects or searches a value in a style DropDownList, I want to know if I can reset the control back to an empty selection

// DropUp event - Occurs when the drop-down portion of the control is hidden.
private void excombobox1_DropUp(object sender)
{
excombobox1.Value = "";
}
//this.excombobox1.DropUp += new exontrol.EXCOMBOBOXLib.exg2antt.DropUpEventHandler(this.excombobox1_DropUp);
// SelectionChanged event - Fired after a new item has been selected.
private void excombobox1_SelectionChanged(object sender)
{
System.Diagnostics.Debug.Print( "You selected: " );
System.Diagnostics.Debug.Print( excombobox1.Value.ToString() );
}
//this.excombobox1.SelectionChanged += new exontrol.EXCOMBOBOXLib.exg2antt.SelectionChangedEventHandler(this.excombobox1_SelectionChanged);
excombobox1.BeginUpdate();
excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList;
excombobox1.HeaderVisible = false;
excombobox1.AutoSearch = true;
excombobox1.AutoDropDown = true;
excombobox1.IntegralHeight = true;
(excombobox1.Columns.Add("Default") as exontrol.EXCOMBOBOXLib.Column).AutoSearch = exontrol.EXCOMBOBOXLib.AutoSearchEnum.exContains;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("This is a bit of text");
var_Items.AddItem("This is a another text");
var_Items.DefaultItem = var_Items.InsertItem(null,null,"");
var_Items.set_ItemPosition(0,0);
var_Items.set_SortableItem(0,false);
excombobox1.EndUpdate();
|
560
|
How I can programmatically select a row (with regular combobox I can set the ListIndex right up to Listcount -1)

excombobox1.BeginUpdate();
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
var_Items.AddItem("Item 3");
var_Items.set_SelectItem(var_Items[1],true);
excombobox1.EndUpdate();
|
561
|
How I can programmatically select a row (method 2)

excombobox1.BeginUpdate();
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
var_Items.AddItem("Item 3");
excombobox1.Value = "Item 2";
excombobox1.EndUpdate();
|
88
|
How do lock / fix some columns to the control, so I can see them all the time, event if I scroll the columns

excombobox1.CountLockedColumns = 1;
excombobox1.BackColorLock = Color.FromArgb(240,240,240);
excombobox1.ColumnAutoResize = false;
(excombobox1.Columns.Add("Locked") as exontrol.EXCOMBOBOXLib.Column).Width = 128;
(excombobox1.Columns.Add("Un-Locked 1") as exontrol.EXCOMBOBOXLib.Column).Width = 128;
(excombobox1.Columns.Add("Un-Locked 2") as exontrol.EXCOMBOBOXLib.Column).Width = 128;
(excombobox1.Columns.Add("Un-Locked 3") as exontrol.EXCOMBOBOXLib.Column).Width = 128;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_CellCaption(var_Items.AddItem("locked"),1,"unlocked");
|
299
|
How do I vertically align a cell

excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exRowLines;
(excombobox1.Columns.Add("MultipleLine") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellSingleLine,false);
excombobox1.Columns.Add("VAlign");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("This is a bit of long text that should break the line");
var_Items.set_CellCaption(h,1,"top");
var_Items.set_CellVAlignment(h,1,exontrol.EXCOMBOBOXLib.VAlignmentEnum.exTop);
h = var_Items.AddItem("This is a bit of long text that should break the line");
var_Items.set_CellCaption(h,1,"middle");
var_Items.set_CellVAlignment(h,1,exontrol.EXCOMBOBOXLib.VAlignmentEnum.exMiddle);
h = var_Items.AddItem("This is a bit of long text that should break the line");
var_Items.set_CellCaption(h,1,"bottom");
var_Items.set_CellVAlignment(h,1,exontrol.EXCOMBOBOXLib.VAlignmentEnum.exBottom);
|
84
|
How do I use my own icons for my radio buttons

excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
excombobox1.set_RadioImage(false,1);
excombobox1.set_RadioImage(true,2);
(excombobox1.Columns.Add("Radio") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasRadioButton,true);
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Radio 1");
var_Items.set_CellState(var_Items.AddItem("Radio 2"),0,1);
var_Items.AddItem("Radio 3");
|
83
|
How do I use my own icons for checkbox cells

excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
excombobox1.set_CheckImage(exontrol.EXCOMBOBOXLib.CheckStateEnum.Unchecked,1);
excombobox1.set_CheckImage(exontrol.EXCOMBOBOXLib.CheckStateEnum.Checked,2);
(excombobox1.Columns.Add("Check") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true);
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Check 1");
var_Items.set_CellState(var_Items.AddItem("Check 2"),0,1);
|
479
|
How do I unselect/deselect the item (Simple style)
excombobox1.BeginUpdate();
excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.Simple;
excombobox1.Columns.Add("Def");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 3");
excombobox1.SearchColumnIndex = 0;
excombobox1.Value = "Item 2";
exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items;
var_Items1.set_SelectItem(var_Items1.FocusItem,false);
excombobox1.EndUpdate();
|
478
|
How do I unselect/deselect the item (DropDownList style)
excombobox1.BeginUpdate();
excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDown;
excombobox1.Columns.Add("Def");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 3");
excombobox1.SearchColumnIndex = 0;
excombobox1.Value = "Item 2";
exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items;
var_Items1.set_SelectItem(var_Items1.FocusItem,false);
excombobox1.EndUpdate();
|
477
|
How do I unselect/deselect the item (DropDown style)
excombobox1.BeginUpdate();
excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDown;
excombobox1.Columns.Add("Def");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 3");
excombobox1.SearchColumnIndex = 0;
excombobox1.Value = "Item 2";
exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items;
var_Items1.set_SelectItem(var_Items1.FocusItem,false);
excombobox1.EndUpdate();
|
288
|
How do I unselect an item

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
var_Items.set_SelectItem(h,false);
|
155
|
How do I underline the numbers greater than a value

excombobox1.ConditionalFormats.Add("%0 >= 10",null).Underline = true;
excombobox1.Columns.Add("Numbers");
excombobox1.Items.AddItem(1);
excombobox1.Items.AddItem(2);
excombobox1.Items.AddItem(10);
excombobox1.Items.AddItem(20);
|
244
|
How do I underline an item

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_ItemUnderline(var_Items.AddItem("underline"),true);
|
245
|
How do I underline a cell or an item

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_CellCaptionFormat(var_Items.AddItem("gets <u>underline</u> only a portion of text"),0,exontrol.EXCOMBOBOXLib.CaptionFormatEnum.exHTML);
|
246
|
How do I underline a cell

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_CellUnderline(var_Items.AddItem("underline"),0,true);
|
325
|
How do I turn off the auto complete feature

excombobox1.AutoComplete = false;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
|
328
|
How do I specify the width of the drop down window

excombobox1.set_WidthList(null,100);
excombobox1.AllowSizeGrip = true;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
|
327
|
How do I specify the minimum width of the drop down window

excombobox1.MinWidthList = 100;
excombobox1.AllowSizeGrip = true;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
|
329
|
How do I specify the minimum height of the drop down window

excombobox1.MinHeightList = 100;
excombobox1.AllowSizeGrip = true;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
|
92
|
How do I specify the indentation of the child items relative to their parents

excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot;
excombobox1.Indent = 11;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child");
|
330
|
How do I specify the height of the drop down window

excombobox1.set_HeightList(null,400);
excombobox1.MinWidthList = 100;
excombobox1.AllowSizeGrip = true;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
|
338
|
How do I specify the height of the control's label

excombobox1.LabelHeight = 34;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
|
93
|
How do I specify the column where the tree lines / hierarchy are shown

excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot;
excombobox1.TreeColumnIndex = 1;
excombobox1.Columns.Add("Column 1");
excombobox1.Columns.Add("Column 2");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1.1");
var_Items.set_CellCaption(h,1,"Root 1.2");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1.1"),1,"Child 1.2");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 2.1"),1,"Child 2.2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2.1");
var_Items.set_CellCaption(h,1,"Root 2.2");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1.1"),1,"Child 1.2");
|
483
|
How do I sort the index column as numeric

// InsertItem event - Occurs after a new item has been inserted to Items collection.
private void excombobox1_InsertItem(object sender, int Item)
{
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_CellData(Item,1,var_Items.get_ItemToIndex(Item));
}
//this.excombobox1.InsertItem += new exontrol.EXCOMBOBOXLib.exg2antt.InsertItemEventHandler(this.excombobox1_InsertItem);
excombobox1.BeginUpdate();
excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exAllLines;
excombobox1.ColumnAutoResize = true;
excombobox1.ShowFocusRect = false;
excombobox1.SingleEdit = true;
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Next") as exontrol.EXCOMBOBOXLib.Column);
var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellPaddingLeft,4);
var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exHeaderPaddingLeft,4);
exontrol.EXCOMBOBOXLib.Column var_Column1 = (excombobox1.Columns.Add("Index") as exontrol.EXCOMBOBOXLib.Column);
var_Column1.AllowSizing = false;
var_Column1.Width = 48;
var_Column1.FormatColumn = "(((0 := (1 index ``)) mod 3) case ( default: ``; 0 : `<r><fgcolor=B0B0B0>`; 1: ``; 2 : `<c><fgcolor=808080>` )) + str(=:0)";
var_Column1.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat,1);
var_Column1.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortUserData;
var_Column1.Position = 0;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 4");
var_Items.AddItem("Item 5");
var_Items.AddItem("Item 6");
var_Items.AddItem("Item 7");
var_Items.AddItem("Item 8");
var_Items.AddItem("Item 9");
var_Items.AddItem("Item 10");
excombobox1.EndUpdate();
|
229
|
How do I sort the child items

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
var_Items.SortChildren(h,0,false);
|
79
|
How do I sort descending a column, and put the sorting icon in the column's header

excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
var_Items.AddItem("Item 3");
excombobox1.Columns[0].SortOrder = exontrol.EXCOMBOBOXLib.SortOrderEnum.SortDescending;
|
78
|
How do I sort ascending a column, and put the sorting icon in the column's header

excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
excombobox1.Columns[0].SortOrder = exontrol.EXCOMBOBOXLib.SortOrderEnum.SortAscending;
|
72
|
How do I sort a column by numbers

(excombobox1.Columns.Add("desc") as exontrol.EXCOMBOBOXLib.Column).SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem(1);
var_Items.AddItem(5);
var_Items.AddItem(10);
var_Items.SortChildren(0,0,false);
|
116
|
How do I show the tooltip quicker

excombobox1.ToolTipDelay = 1;
(excombobox1.Columns.Add("tootip") as exontrol.EXCOMBOBOXLib.Column).ToolTip = "this is a tooltip assigned to a column";
|
181
|
How do I show or hide the sorting icons, but still need sorting

(excombobox1.Columns.Add("Sorted") as exontrol.EXCOMBOBOXLib.Column).SortOrder = exontrol.EXCOMBOBOXLib.SortOrderEnum.SortAscending;
excombobox1.Columns[0].DisplaySortIcon = false;
|
194
|
How do I show buttons for all cells in the column

exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Button") as exontrol.EXCOMBOBOXLib.Column);
var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasButton,true);
var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellButtonAutoWidth,true);
excombobox1.Items.AddItem(" Button 1 ");
excombobox1.Items.AddItem(" Button 2 ");
|
193
|
How do I show buttons for all cells in the column

(excombobox1.Columns.Add("Button") as exontrol.EXCOMBOBOXLib.Column).set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasButton,true);
excombobox1.Items.AddItem(0);
excombobox1.Items.AddItem(1);
|
109
|
How do I show alternate rows in different background color

excombobox1.BackColorAlternate = Color.FromArgb(240,240,240);
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 4");
var_Items.AddItem("Item 5");
|
559
|
How do I set an extra data for each item
// MouseMove event - Occurs when the user moves the mouse.
private void excombobox1_MouseMoveEvent(object sender, short Button, short Shift, int X, int Y)
{
int i = excombobox1.get_ItemFromPoint(-1,-1,c,hit);
System.Diagnostics.Debug.Print( i.ToString() );
System.Diagnostics.Debug.Print( excombobox1.Items.get_ItemData(i).ToString() );
}
//this.excombobox1.MouseMoveEvent += new exontrol.EXCOMBOBOXLib.exg2antt.MouseMoveEventHandler(this.excombobox1_MouseMoveEvent);
excombobox1.BeginUpdate();
excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_ItemData(var_Items.AddItem("method 1"),"your extra data of method 1");
var_Items.InsertItem(0,"your extra data of method 2","method 2");
exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items;
var_Items1.DefaultItem = var_Items1.AddItem("method 3");
var_Items1.set_ItemData(0,"your extra data of method 3");
excombobox1.EndUpdate();
|
286
|
How do I select an item

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
var_Items.set_SelectItem(h,true);
|
347
|
How do I select a value

excombobox1.IntegralHeight = true;
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot;
excombobox1.TreeColumnIndex = 1;
excombobox1.Columns.Add("Column 1");
excombobox1.Columns.Add("Column 2");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1.1");
var_Items.set_CellCaption(h,1,"Root 1.2");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1.1"),1,"Child 1.2");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 2.1"),1,"Child 2.2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2.1");
var_Items.set_CellCaption(h,1,"Root 2.2");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1.1"),1,"Child 1.2");
excombobox1.set_Select(1,"Root 1.2");
|
348
|
How do I select a value

excombobox1.IntegralHeight = true;
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot;
excombobox1.TreeColumnIndex = 1;
excombobox1.Columns.Add("Column 1");
excombobox1.Columns.Add("Column 2");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1.1");
var_Items.set_CellCaption(h,1,"Root 1.2");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1.1"),1,"Child 1.2");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 2.1"),1,"Child 2.2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2.1");
var_Items.set_CellCaption(h,1,"Root 2.2");
var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Child 1.1"),1,"Child 1.2");
excombobox1.Value = "Root 1.1";
|
466
|
How do I select a NULL/empty value

excombobox1.BeginUpdate();
excombobox1.Style = exontrol.EXCOMBOBOXLib.StyleEnum.DropDownList;
excombobox1.Columns.Add("Items");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 4");
var_Items.DefaultItem = var_Items.InsertItem(null,null,"");
var_Items.set_ItemPosition(0,0);
var_Items.set_SortableItem(0,false);
excombobox1.Value = "";
excombobox1.EndUpdate();
|
114
|
How do I search case sensitive, using your incremental search feature

excombobox1.AutoSearch = true;
excombobox1.ASCIILower = "";
exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns;
(var_Columns.Add("exStartWith") as exontrol.EXCOMBOBOXLib.Column).AutoSearch = exontrol.EXCOMBOBOXLib.AutoSearchEnum.exStartWith;
(var_Columns.Add("exContains") as exontrol.EXCOMBOBOXLib.Column).AutoSearch = exontrol.EXCOMBOBOXLib.AutoSearchEnum.exContains;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_CellCaption(var_Items.AddItem("text"),1,"another text");
exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items;
var_Items1.set_CellCaption(var_Items1.AddItem("text"),1,"another text");
|
262
|
How do I retrieve the focused item

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
var_Items.set_ItemBold(var_Items.FocusItem,true);
|
345
|
How do I remove the drop down's border

excombobox1.DropDownBorder = exontrol.EXCOMBOBOXLib.AppearanceEnum.None2;
|
69
|
How do I remove the control's border

excombobox1.Appearance = exontrol.EXCOMBOBOXLib.AppearanceEnum.None2;
|
451
|
How do I prevent scrolling the control's data after user does the sort

excombobox1.EnsureOnSort = false;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
excombobox1.PutItems(excombobox1.GetItems(0),null);
excombobox1.PutItems(excombobox1.GetItems(0),null);
excombobox1.PutItems(excombobox1.GetItems(0),null);
excombobox1.Columns[0].SortOrder = exontrol.EXCOMBOBOXLib.SortOrderEnum.SortAscending;
|
585
|
How do I prevent changing the cell's state ( check-box state )
// CellStateChanging event - Fired before cell's state is about to be changed.
private void excombobox1_CellStateChanging(object sender, exontrol.EXCOMBOBOXLib.HCELL Cell, ref int NewState)
{
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
NewState = var_Items.get_CellState(null,Cell);
}
//this.excombobox1.CellStateChanging += new exontrol.EXCOMBOBOXLib.exg2antt.CellStateChangingEventHandler(this.excombobox1_CellStateChanging);
excombobox1.BeginUpdate();
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot;
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("P1") as exontrol.EXCOMBOBOXLib.Column);
var_Column.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true);
var_Column.PartialCheck = true;
exontrol.EXCOMBOBOXLib.Column var_Column1 = (excombobox1.Columns.Add("P2") as exontrol.EXCOMBOBOXLib.Column);
var_Column1.set_Def(exontrol.EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox,true);
var_Column1.PartialCheck = true;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
excombobox1.EndUpdate();
|
77
|
How do I perform my own/custom sort, using my extra strings

(excombobox1.Columns.Add("desc") as exontrol.EXCOMBOBOXLib.Column).SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortUserData;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_CellData(var_Items.AddItem("A"),0,"C");
var_Items.set_CellData(var_Items.AddItem("B"),0,"B");
var_Items.set_CellData(var_Items.AddItem("C"),0,"A");
var_Items.SortChildren(0,0,false);
|
76
|
How do I perform my own/custom sort, using my extra numbers

(excombobox1.Columns.Add("desc") as exontrol.EXCOMBOBOXLib.Column).SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortUserData;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_CellData(var_Items.AddItem(0),0,2);
var_Items.set_CellData(var_Items.AddItem(1),0,1);
var_Items.set_CellData(var_Items.AddItem(2),0,0);
var_Items.SortChildren(0,0,false);
|
82
|
How do I perform my own sorting when user clicks the column's header

excombobox1.SortOnClick = exontrol.EXCOMBOBOXLib.SortOnClickEnum.exUserSort;
excombobox1.Columns.Add("Column");
excombobox1.Items.AddItem("Item 1");
excombobox1.Items.AddItem("Item 2");
|
334
|
How do I lock or make read-only the control

excombobox1.Locked = true;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
|
331
|
How do I let user to resize the drop down window, at runtime

excombobox1.AllowSizeGrip = true;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
|
332
|
How do I let user to resize only the width of the drop down window, at runtime

excombobox1.AllowSizeGrip = true;
excombobox1.AllowVResize = false;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
|
333
|
How do I let user to resize only the height of the drop down window, at runtime

excombobox1.AllowSizeGrip = true;
excombobox1.AllowHResize = false;
excombobox1.MinWidthList = 100;
excombobox1.MinHeightList = 100;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
|
117
|
How do I let the tooltip being displayed longer

excombobox1.ToolTipPopDelay = 10000;
(excombobox1.Columns.Add("tootip") as exontrol.EXCOMBOBOXLib.Column).ToolTip = "this is a tooltip assigned to a column";
|
153
|
How do I highlight in italic the numbers greater than a value

excombobox1.ConditionalFormats.Add("%0 >= 10",null).Italic = true;
excombobox1.Columns.Add("Numbers");
excombobox1.Items.AddItem(1);
excombobox1.Items.AddItem(2);
excombobox1.Items.AddItem(10);
excombobox1.Items.AddItem(20);
|
154
|
How do I highlight in italic the numbers greater than a value

excombobox1.ConditionalFormats.Add("%0 >= 10",null).StrikeOut = true;
excombobox1.Columns.Add("Numbers");
excombobox1.Items.AddItem(1);
excombobox1.Items.AddItem(2);
excombobox1.Items.AddItem(10);
excombobox1.Items.AddItem(20);
|
152
|
How do I highlight in bold the numbers greater than a value

excombobox1.ConditionalFormats.Add("%0 >= 10",null).Bold = true;
excombobox1.Columns.Add("Numbers");
excombobox1.Items.AddItem(1);
excombobox1.Items.AddItem(2);
excombobox1.Items.AddItem(10);
excombobox1.Items.AddItem(20);
|
71
|
How do I hide the control's header bar

excombobox1.HeaderVisible = false;
|
258
|
How do I get the parent item

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
var_Items.set_ItemBold(var_Items.get_ItemParent(var_Items.get_ItemChild(h)),true);
|
232
|
How do I get the number or count of items

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items;
var_Items1.AddItem(var_Items1.ItemCount);
|
261
|
How do I get the number or count of child items

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
var_Items.AddItem(var_Items.get_ChildCount(h));
|
339
|
How do I get the handle of the drop down window

excombobox1.Columns.Add(excombobox1.hWndDropDown.ToString());
|
263
|
How do I get the handle of the cell

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
var_Items.set_CellBold(null,var_Items.get_ItemCell(h,0),true);
|
257
|
How do I get the first child item

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
var_Items.set_ItemBold(var_Items.get_ItemChild(h),true);
|
486
|
How do I get sorted the column as string, numeric, date, date and time. Also how can it be applied to drop down filter panel

excombobox1.BeginUpdate();
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Date") as exontrol.EXCOMBOBOXLib.Column);
var_Column.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortDate;
var_Column.DisplayFilterButton = true;
var_Column.DisplayFilterPattern = false;
var_Column.DisplayFilterDate = true;
var_Column.FilterList = exontrol.EXCOMBOBOXLib.FilterListEnum.exShowFocusItem | exontrol.EXCOMBOBOXLib.FilterListEnum.exShowCheckBox | exontrol.EXCOMBOBOXLib.FilterListEnum.exSortItemsDesc;
exontrol.EXCOMBOBOXLib.Column var_Column1 = (excombobox1.Columns.Add("DateTime") as exontrol.EXCOMBOBOXLib.Column);
var_Column1.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortDateTime;
var_Column1.DisplayFilterButton = true;
var_Column1.DisplayFilterPattern = false;
var_Column1.FilterList = exontrol.EXCOMBOBOXLib.FilterListEnum.exShowFocusItem | exontrol.EXCOMBOBOXLib.FilterListEnum.exShowCheckBox | exontrol.EXCOMBOBOXLib.FilterListEnum.exSortItemsDesc;
exontrol.EXCOMBOBOXLib.Column var_Column2 = (excombobox1.Columns.Add("Time") as exontrol.EXCOMBOBOXLib.Column);
var_Column2.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortTime;
var_Column2.DisplayFilterButton = true;
var_Column2.DisplayFilterPattern = false;
var_Column2.FilterList = exontrol.EXCOMBOBOXLib.FilterListEnum.exShowFocusItem | exontrol.EXCOMBOBOXLib.FilterListEnum.exShowCheckBox | exontrol.EXCOMBOBOXLib.FilterListEnum.exSortItemsDesc;
var_Column2.FormatColumn = "time(value)";
exontrol.EXCOMBOBOXLib.Column var_Column3 = (excombobox1.Columns.Add("Numeric") as exontrol.EXCOMBOBOXLib.Column);
var_Column3.SortType = exontrol.EXCOMBOBOXLib.SortTypeEnum.SortNumeric;
var_Column3.DisplayFilterButton = true;
var_Column3.FilterList = exontrol.EXCOMBOBOXLib.FilterListEnum.exShowFocusItem | exontrol.EXCOMBOBOXLib.FilterListEnum.exShowCheckBox | exontrol.EXCOMBOBOXLib.FilterListEnum.exSortItemsDesc;
exontrol.EXCOMBOBOXLib.Column var_Column4 = (excombobox1.Columns.Add("String") as exontrol.EXCOMBOBOXLib.Column);
var_Column4.DisplayFilterButton = true;
var_Column4.FilterList = exontrol.EXCOMBOBOXLib.FilterListEnum.exShowFocusItem | exontrol.EXCOMBOBOXLib.FilterListEnum.exShowCheckBox | exontrol.EXCOMBOBOXLib.FilterListEnum.exSortItemsDesc;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem(Convert.ToDateTime("1/27/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/27/2010 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellCaption(h,2,var_Items.get_CellCaption(h,1));
var_Items.set_CellCaption(h,3,1);
var_Items.set_CellCaption(h,4,var_Items.get_CellCaption(h,3));
h = var_Items.AddItem(Convert.ToDateTime("1/27/2011",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellCaption(h,1,Convert.ToDateTime("1/27/2011 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellCaption(h,2,var_Items.get_CellCaption(h,1));
var_Items.set_CellCaption(h,3,11);
var_Items.set_CellCaption(h,4,var_Items.get_CellCaption(h,3));
h = var_Items.AddItem(Convert.ToDateTime("11/2/2010",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellCaption(h,1,Convert.ToDateTime("11/2/2010 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
var_Items.set_CellCaption(h,2,var_Items.get_CellCaption(h,1));
var_Items.set_CellCaption(h,3,2);
var_Items.set_CellCaption(h,4,var_Items.get_CellCaption(h,3));
excombobox1.Columns["DateTime"].DisplayFilterDate = false;
excombobox1.EndUpdate();
|
96
|
How do I get ride of the rectangle arround focused item

excombobox1.ShowFocusRect = false;
excombobox1.Columns.Add("Column");
excombobox1.Items.AddItem(0);
excombobox1.Items.AddItem(1);
|
470
|
How do I get notified once the user changes the Filter For field
// EditChange event - Fired when the user has taken an action that may have altered text in an edit control.
private void excombobox1_EditChange(object sender, int ColIndex)
{
System.Diagnostics.Debug.Print( "ColIndex: " );
System.Diagnostics.Debug.Print( ColIndex.ToString() );
System.Diagnostics.Debug.Print( "Label: " );
System.Diagnostics.Debug.Print( excombobox1.get_EditText(0) );
System.Diagnostics.Debug.Print( "FilterFor: " );
System.Diagnostics.Debug.Print( excombobox1.get_EditText(-1) );
}
//this.excombobox1.EditChange += new exontrol.EXCOMBOBOXLib.exg2antt.EditChangeEventHandler(this.excombobox1_EditChange);
excombobox1.BeginUpdate();
excombobox1.FilterForVisible = true;
excombobox1.FilterForBackColor = Color.FromArgb(240,240,240);
excombobox1.IntegralHeight = true;
excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 4");
var_Items.AddItem("Item 5");
excombobox1.EndUpdate();
|
547
|
How do I get a list of interfaces the object implemenets

excombobox1.BeginUpdate();
excombobox1.ColumnAutoResize = false;
// Add 'Microsoft Office 15.0 Access database engine Object Library(ACEDAO.DLL)' reference to your project.
DAO.PrivDBEngine var_PrivDBEngine = new DAO.PrivDBEngine();
DAO.Recordset2 rs = (var_PrivDBEngine.OpenDatabase("C:\\Program Files\\Exontrol\\ExComboBox\\Sample\\Access\\sample.accdb",null,null,null).OpenRecordset("Orders",null,null,null) as DAO.Recordset2);
// Add 'exontrol.expropertieslist.dll(ExPropertiesList.dll)' reference to your project.
System.Diagnostics.Debug.Print( new exontrol.EXPROPERTIESLISTLib.expropertieslist().get_Interfaces(rs) );
excombobox1.DataSource = (rs as DAO.Recordset2);
excombobox1.Value = 10248;
excombobox1.EndUpdate();
|
287
|
How do I find the selected item

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
var_Items.set_SelectItem(h,true);
var_Items.set_ItemBold(var_Items.get_SelectedItem(0),true);
|
294
|
How do I find the index of the item based on its handle

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
var_Items.set_ItemBold(var_Items[var_Items.get_ItemToIndex(h)],true);
|
293
|
How do I find the handle of the item based on its index

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
var_Items.set_ItemBold(var_Items[1],true);
|
297
|
How do I find an item based on a path

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.set_ItemData(var_Items.InsertItem(h,null,"Child 2"),1234);
var_Items.set_ExpandItem(h,true);
var_Items.set_ItemBold(var_Items.get_FindPath("Root 1\\Child 1"),true);
|
296
|
How do I find an item

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
var_Items.set_ItemBold(var_Items.get_FindItem("Child 2",0,null),true);
|
107
|
How do I filter programatically the control

exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exPattern;
var_Column.Filter = "Item*";
excombobox1.Items.AddItem("Item 1");
excombobox1.Items.AddItem("");
excombobox1.Items.AddItem("Item 2");
excombobox1.ApplyFilter();
|
63
|
How do I filter for items that match exactly the specified string

exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.FilterType = exontrol.EXCOMBOBOXLib.FilterTypeEnum.exFilter;
var_Column.Filter = "Item 1";
excombobox1.Items.AddItem("Item 1");
excombobox1.Items.AddItem("Item 2");
excombobox1.Items.AddItem("Item 3");
excombobox1.ApplyFilter();
|
234
|
How do I expand or collapse an item

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
|
123
|
How do I expand automatically the items while user types characters to searching for something ( incremental searching )

excombobox1.ExpandOnSearch = true;
excombobox1.LinesAtRoot = exontrol.EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot;
excombobox1.AutoSearch = true;
(excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column).AutoSearch = exontrol.EXCOMBOBOXLib.AutoSearchEnum.exContains;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.InsertItem(var_Items.InsertItem(var_Items.AddItem("text"),null,"some text"),null,"another text");
var_Items.InsertItem(var_Items.InsertItem(var_Items.AddItem("text"),null,"some text"),null,"another text");
|
260
|
How do I enumerate the visible items

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.set_ItemBold(var_Items.FirstVisibleItem,true);
var_Items.set_ItemBold(var_Items.get_NextVisibleItem(var_Items.FirstVisibleItem),true);
|
259
|
How do I enumerate the siblings items

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.set_ItemBold(var_Items.get_NextSiblingItem(var_Items.FirstVisibleItem),true);
var_Items.set_ItemBold(var_Items.get_PrevSiblingItem(var_Items.get_NextSiblingItem(var_Items.FirstVisibleItem)),true);
|
256
|
How do I enumerate the root items

excombobox1.Columns.Add("Default");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Root 1");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ExpandItem(h,true);
h = var_Items.AddItem("Root 2");
var_Items.InsertItem(h,null,"Child 1");
var_Items.InsertItem(h,null,"Child 2");
var_Items.set_ItemBold(var_Items.get_RootItem(0),true);
var_Items.set_ItemUnderline(var_Items.get_RootItem(1),true);
|
40
|
How do I ensure that the focused item is visible, after the user does the sort

excombobox1.EnsureOnSort = true;
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item 3");
var_Items.AddItem("Item 1");
var_Items.AddItem("Item 2");
excombobox1.PutItems(excombobox1.GetItems(0),null);
excombobox1.PutItems(excombobox1.GetItems(0),null);
excombobox1.PutItems(excombobox1.GetItems(0),null);
excombobox1.Columns[0].SortOrder = exontrol.EXCOMBOBOXLib.SortOrderEnum.SortAscending;
|
108
|
How do I enlarge the drop down filter window

excombobox1.FilterBarDropDownHeight = "-320";
exontrol.EXCOMBOBOXLib.Column var_Column = (excombobox1.Columns.Add("Column") as exontrol.EXCOMBOBOXLib.Column);
var_Column.DisplayFilterButton = true;
var_Column.FilterBarDropDownWidth = "-320";
excombobox1.Items.AddItem("Item 1");
excombobox1.Items.AddItem("Item 2");
|
165
|
How do I enlarge or change the size of the control's scrollbars

excombobox1.ScrollHeight = 18;
excombobox1.ScrollWidth = 18;
excombobox1.ScrollButtonWidth = 18;
excombobox1.ScrollButtonHeight = 18;
|
112
|
How do I enable the incremental search feature within a column

excombobox1.AutoSearch = true;
exontrol.EXCOMBOBOXLib.Columns var_Columns = excombobox1.Columns;
(var_Columns.Add("exStartWith") as exontrol.EXCOMBOBOXLib.Column).AutoSearch = exontrol.EXCOMBOBOXLib.AutoSearchEnum.exStartWith;
(var_Columns.Add("exContains") as exontrol.EXCOMBOBOXLib.Column).AutoSearch = exontrol.EXCOMBOBOXLib.AutoSearchEnum.exContains;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_CellCaption(var_Items.AddItem("text"),1,"another text");
exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items;
var_Items1.set_CellCaption(var_Items1.AddItem("text"),1,"another text");
|
138
|
How do I enable resizing the columns at runtime

excombobox1.ColumnsAllowSizing = true;
excombobox1.MarkSearchColumn = false;
excombobox1.HeaderVisible = false;
excombobox1.Columns.Add("Column 1");
excombobox1.Columns.Add("Column 2");
excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exVLines;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_CellCaption(var_Items.AddItem("Item 1"),1,"Sub Item 1");
exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items;
var_Items1.set_CellCaption(var_Items1.AddItem("Item 2"),1,"Sub Item 2");
|
351
|
How do I enable resizing all the items at runtime

excombobox1.ItemsAllowSizing = exontrol.EXCOMBOBOXLib.ItemsAllowSizingEnum.exResizeAllItems;
excombobox1.DrawGridLines = exontrol.EXCOMBOBOXLib.GridLinesEnum.exHLines;
excombobox1.Columns.Add("Column");
excombobox1.Items.AddItem("Item 1");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_ItemHeight(var_Items.AddItem("Item 2"),48);
excombobox1.Items.AddItem("Item 3");
|
137
|
How do I enable resizing ( changing the height ) the items at runtime

excombobox1.ItemsAllowSizing = exontrol.EXCOMBOBOXLib.ItemsAllowSizingEnum.exResizeItem;
excombobox1.ScrollBySingleLine = true;
excombobox1.Columns.Add("Column");
excombobox1.Items.AddItem("Item 1");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_ItemHeight(var_Items.AddItem("Item 2"),48);
excombobox1.Items.AddItem("Item 3");
|
180
|
How do I enable or disable the entire column

excombobox1.Columns.Add("C1");
(excombobox1.Columns.Add("Disabled") as exontrol.EXCOMBOBOXLib.Column).Enabled = false;
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_CellCaption(var_Items.AddItem(0),1,"0.1");
exontrol.EXCOMBOBOXLib.Items var_Items1 = excombobox1.Items;
var_Items1.set_CellCaption(var_Items1.AddItem(1),1,"1.1");
|
268
|
How do I enable or disable a cell

excombobox1.Columns.Add("C1");
excombobox1.Columns.Add("C2");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
int h = var_Items.AddItem("Cell 1");
var_Items.set_CellCaption(h,1,"Cell 2");
var_Items.set_CellEnabled(h,1,false);
|
553
|
How do I display the position of the item with 0-padding

excombobox1.BeginUpdate();
(excombobox1.Columns.Add("Items") as exontrol.EXCOMBOBOXLib.Column).FormatColumn = "((1 apos ``) lpad `00`) + `. ` + value";
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.AddItem("Item A");
var_Items.AddItem("Item B");
var_Items.AddItem("Item C");
var_Items.AddItem("Item D");
excombobox1.EndUpdate();
|
349
|
How do I display the icons being selected in the control's label

excombobox1.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=");
excombobox1.Columns.Add("Column");
exontrol.EXCOMBOBOXLib.Items var_Items = excombobox1.Items;
var_Items.set_CellImage(var_Items.AddItem("Image 1"),0,1);
var_Items.set_CellImage(var_Items.AddItem("Image 2"),0,2);
var_Items.set_CellImage(var_Items.AddItem("Image 3"),0,3);
excombobox1.set_AssignEditImageOnSelect(0,true);
excombobox1.Value = "Image 2";
|